package zookeeper.demo;

import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;

/**
 * @author 明月工作室
 */
public class TestAsync {

    public static void main(String[] args) throws ExecutionException, InterruptedException {

        for (int i = 0; i < 100; i++) {
            int index = i;
            CompletableFuture.runAsync(() -> System.out.println("666---" + index));
        }

        Thread.sleep(1000);
    }
}
